import fs from "fs";
import path from "path";
export function addFilename(fileAddress, suffix) {
    var newPath = path
        .basename(fileAddress, path.extname(fileAddress))
        .concat(suffix)
        .concat(path.extname(fileAddress));
    return path.resolve(process.cwd(), newPath);
}
export function safeWrite(fileAddress, data) {
    fs.writeFile(fileAddress, data, { flag: "a" }, function (err) {
        if (err !== null)
            throw err;
    });
}
